if (self.CavalryLogger) { CavalryLogger.start_js(["gCwRB"]); } __d("VideoCopyrightMatchStatus",[],(function(a,b,c,d,e,f){e.exports={NEW_MATCH:"NEW_MATCH",REPORTED:"REPORTED",ALLOWED:"ALLOWED",ADDED_MATCH:"ADDED_MATCH",REMOVED:"REMOVED",IN_DISPUTE:"IN_DISPUTE",BLOCKED:"BLOCKED",CLAIMED:"CLAIMED",MONITORED:"MONITORED",MANUAL_REVIEW:"MANUAL_REVIEW",REPORTED_OR_REMOVED:"REPORTED_OR_REMOVED",OTHER:"OTHER"}}),null); __d("VideoCopyrightRuleGraphFields",[],(function(a,b,c,d,e,f){e.exports={ID:"id",NAME:"name",MIGRATION_RULE_ID:"migration_rule_id",COPYRIGHTS:"copyrights",CONDITION_GROUPS:"condition_groups",CREATOR:"creator",CREATED_DATE:"created_date",COPYRIGHTS_COUNT:"copyrights_count",MATCHES_COUNT:"matches_count",IS_IN_MIGRATION:"is_in_migration",IS_NEW_VERSION_RULE:"is_new_version_rule",EXCLUDED_COPYRIGHT_IDS:"excluded_copyright_ids",ACTION:"action",CONDITIONS:"conditions",VALIDITY_STATUS:"validity_status",TYPE:"type",OPERATOR:"operator",VALUE:"value"}}),null); __d("VideoReferenceMatchState",[],(function(a,b,c,d,e,f){e.exports={CONFLICT:"CONFLICT",DISPUTED:"DISPUTED",DISPUTE_ACCEPTED:"DISPUTE_ACCEPTED",DISPUTE_REJECTED:"DISPUTE_REJECTED",CONFLICT_RESOLVED:"CONFLICT_RESOLVED",AUTO_RESOLVED:"AUTO_RESOLVED",INACTIVE:"INACTIVE",DISPUTE_EXPIRED:"DISPUTE_EXPIRED",OPS_RESOLVED:"OPS_RESOLVED",CONFLICT_EXPIRED:"CONFLICT_EXPIRED",POSSIBLE_CONFLICT:"POSSIBLE_CONFLICT",OWNERSHIP_ASSERTED:"OWNERSHIP_ASSERTED"}}),null); __d("MentionsInputTypeaheadView.react",["cx","MentionsTypeaheadViewItem.react","React"],(function(a,b,c,d,e,f,g){__p&&__p();a=b("React").PropTypes;c=function(a){"use strict";__p&&__p();babelHelpers.inheritsLoose(c,a);function c(){var c,d;for(var e=arguments.length,f=new Array(e),g=0;g0||this.props.selectingLanguageDialect?b("React").createElement("div",{className:"_3jk8"},b("React").createElement(b("XUIGrayText.react"),{shade:"light",size:"meta1"},b("MultilingualPostStrings").getDefaultLanguage(this.$1(this.props.specifiedPostLanguageDialect,function(b){return a.$2(b)})))):null;return b("React").createElement("div",null,c,this.$3(),this.$4())};d.$3=function(){var a=this,c=this.props.multilingualDialects.map(function(c,d){return b("React").createElement("li",{className:"_30oa",key:c},b("React").createElement(b("MentionsInput.react"),{className:"_2mcl"+(a.props.generatedTranslations.get(d)?" _4hm2":""),editorState:a.props.multilingualEditorStates.get(d),mentionsSource:a.props.mentionsSource,onBlur:b("curry")(a.$5,c),onChange:b("curry")(a.$6,c),placeholder:b("MultilingualPostStrings").getAuthorTranslationPlaceholder(b("LanguageDialectLocalizedNames").getNameForDialect(c)),ref:c,typeaheadView:b("MentionsInputTypeaheadView.react")}),b("React").createElement("div",{className:"_3jk8"},a.$1(c,function(b){return a.$7(c,b)}),b("React").createElement("span",{className:"_3-8r"},i),b("React").createElement(b("Link.react"),{className:"_3jkb",onClick:b("curry")(a.$8,c)},b("MultilingualPostStrings").REMOVE)))});return b("React").createElement("ul",null,c)};d.$4=function(){return!this.props.showingPrompt?null:this.props.selectingLanguageDialect?this.$9():this.$10()};d.$9=function(){var a=this,c=b("CurrentUser").isEmployee()?b("React").createElement(b("TooltipLink.react"),{className:"_3iv- uiHelpLink _3-90",href:"/groups/languagefeedback/",tooltip:"Provide feedback on the Multilingual Composer (fb-only).",target:"_blank"}):null;return b("React").createElement("div",{className:"_30og"},c,b("React").createElement(b("XUIGrayText.react"),{shade:"light",size:"meta1"},b("MultilingualPostStrings").getSelectLanguage(this.$1(void 0,function(b){return a.$11(b)}))),b("React").createElement("span",{className:"_3-8r"},i),b("React").createElement(b("Link.react"),{onClick:this.$12},b("MultilingualPostStrings").CANCEL))};d.$10=function(){return b("React").createElement(b("ShimButton.react"),{className:"_3jk9 _3-91 _3-95"+(this.props.multilingualDialects.size>0?" _3-8x":""),onClick:this.props.onAddingLanguageClick},b("React").createElement(b("Image.react"),{className:"_30oh _3-8_",src:g("144238")}),b("React").createElement("span",{className:"_30oi",ref:"prompt"},b("MultilingualPostStrings").WRITE_POST_IN_ANOTHER_LANGUAGE),b("React").createElement(b("MultilingualPostsHelpLink.react"),{className:"_30oj _3-9a",pageID:this.props.pageID,showSettingsLink:this.props.composerType=="pages_feed"}),this.$13())};d.$13=function(){var a=this;return b("React").createElement(b("XUIAmbientNUX.react"),{contextRef:function(){return a.refs.prompt},onCloseButtonClick:this.props.onNUXClose,position:"below",shown:this.props.showNUX},b("MultilingualPostStrings").MULTILINGUAL_COMPOSER_NUX)};d.$1=function(a,c){return b("React").createElement(b("LanguageDialectSearchableDropdown.react"),{dialectType:"mlc",excludedDialects:Array.from(this.props.allPostLanguageDialects.values()),hasCategories:!0,initialDialect:a,initialDialectName:a?b("LanguageDialectLocalizedNames").getNameForDialect(a):void 0,onSelect:function(a){return c(a)},placeholder:b("MultilingualPostStrings").DROPDOWN_PLACEHOLDER,renderStyle:"ulm_categories"})};d.$11=function(a){this.props.onLanguageCreateClick(a)};d.$7=function(a,b){this.props.onLanguageDialectChange(a,b)};d.$2=function(a){this.props.onSpecifyPostLanguage(a)};return c}(b("React").PureComponent);c.propTypes={allPostLanguageDialects:a.instanceOf(Set).isRequired,composerType:a.string.isRequired,generatedTranslations:a.instanceOf(b("immutable").List).isRequired,mentionsSource:a.object,multilingualDialects:a.instanceOf(b("immutable").List).isRequired,multilingualEditorStates:a.instanceOf(b("immutable").List).isRequired,onAddingLanguageClick:a.func,onBlur:a.func,onChange:a.func,onLanguageCreateClick:a.func.isRequired,onLanguageRemoveClick:a.func.isRequired,onLanguageDialectChange:a.func.isRequired,onNUXClose:a.func,onPromptClose:a.func.isRequired,onSpecifyPostLanguage:a.func.isRequired,pageID:a.string,selectingLanguageDialect:a.bool.isRequired,showNUX:a.bool,showingPrompt:a.bool.isRequired,specifiedPostLanguageDialect:a.string.isRequired};c.defaultProps={generatedTranslations:b("immutable").List()};e.exports=c}),null); __d("MentionsInputUtility",["UnicodeUtils","createEditorStateWithRanges","sanitizeDraftText"],(function(a,b,c,d,e,f){__p&&__p();var g=new RegExp(/@\[(\d+):((\\\]|[^\]])+)\]/g),h=new RegExp(/@\[(\d+):(\d+):((\\\]|[^\]])+)\]/g),i=function(a){__p&&__p();a=b("sanitizeDraftText")(a);a=a.replace(h,"@[$1:$3]");var c=[],d;while(d=g.exec(a)){var e=d[2].replace(/\\:/g,":").replace(/\\]/g,"]").replace(/\n/g,"");e={uid:d[1],text:e,offset:d.index,length:e.length,weakreference:!1,entity:{uid:d[1],weakreference:!1}};c.push(e);a=a.substr(0,e.offset)+e.text+a.substr(e.offset+d[0].length);g.lastIndex=e.offset+e.length}return{text:a,ranges:c}};function j(a,c){__p&&__p();var d=0,e=0;c.forEach(function(c){__p&&__p();var f,g;f=c.offset;g=a.slice(d,f);e+=g.length-b("UnicodeUtils").strlen(g);d=f;var h=f-e;f=c.offset+c.length;g=a.slice(d,f);e+=g.length-b("UnicodeUtils").strlen(g);d=f;g=f-e;c.offset=h;c.length=g-h})}function a(a,c){a=i(a);var d=a.text;a=a.ranges;j(d,a);return b("createEditorStateWithRanges")({text:d,ranges:a,decorator:c,addEntityToContentStateFn:function(a,b){return b.createEntity("MENTION","IMMUTABLE",{id:a.entity.uid,isWeak:a.entity.weakreference})},splitIntoBlocks:!0,allowUndo:!0})}e.exports={createFromTextWithMentions:a}}),null); __d("ReactComposerMultilingualStatusStore",["MentionsInputUtility","ReactComposerMultilingualStatusActionType","ReactComposerStoreBase","getMentionsInputDecorator","getMentionsTextForContentState","immutable"],(function(a,b,c,d,e,f){__p&&__p();var g=b("immutable").Record({languageDialect:null,editorState:null});a=function(a){"use strict";__p&&__p();babelHelpers.inheritsLoose(c,a);function c(){__p&&__p();var c,d;c=a.call(this,function(){return{statuses:b("immutable").List(),specifiedPostLanguage:""}},function(a){__p&&__p();switch(a.type){case b("ReactComposerMultilingualStatusActionType").MOUNTED_MULTILINGUAL_STATUS:d&&d.$ReactComposerMultilingualStatusStore1(a);break;case b("ReactComposerMultilingualStatusActionType").LANGUAGE_CREATED:d&&d.$ReactComposerMultilingualStatusStore2(a);break;case b("ReactComposerMultilingualStatusActionType").LANGUAGE_REMOVED:d&&d.$ReactComposerMultilingualStatusStore3(a);break;case b("ReactComposerMultilingualStatusActionType").LANGUAGE_CHANGED:d&&d.$ReactComposerMultilingualStatusStore4(a);break;case b("ReactComposerMultilingualStatusActionType").SET_LANGUAGE_EDITOR_STATE:d&&d.$ReactComposerMultilingualStatusStore5(a);break;case b("ReactComposerMultilingualStatusActionType").SET_SPECIFIED_POST_LANGUAGE:d&&d.$ReactComposerMultilingualStatusStore6(a);break;case b("ReactComposerMultilingualStatusActionType").PREFILL_MULTILINGUAL_DATA:d&&d.$ReactComposerMultilingualStatusStore7(a);break}})||this;d=babelHelpers.assertThisInitialized(c);return c}var d=c.prototype;d.getAllPostDialects=function(a){var b=this.getLanguageDialects(a);b.push(this.getSpecifiedPostLanguage(a));return b};d.getSpecifiedPostLanguage=function(a){return this.getComposerData(a).specifiedPostLanguage};d.getLanguageDialects=function(a){return this.getStatuses(a).map(function(a){return a.languageDialect}).toArray()};d.getEditorStates=function(a){return this.getStatuses(a).map(function(a){return a.editorState}).toArray()};d.getMessages=function(a){var b=this;return this.getStatuses(a).map(function(a){return b.$ReactComposerMultilingualStatusStore8(a)}).toArray()};d.getMessage=function(a,b){a=this.getStatus(a,b);return this.$ReactComposerMultilingualStatusStore8(a)};d.getStatuses=function(a){return this.getComposerData(a).statuses};d.getStatus=function(a,b){a=this.getComposerData(a);b=this.$ReactComposerMultilingualStatusStore9(a.statuses,b);return a.statuses.get(b)};d.getPostData=function(a){var b=this.getMessages(a);return b.length===0?{}:{multilingual_specified_lang:this.getSpecifiedPostLanguage(a),multilingual_status_langs:this.getLanguageDialects(a),multilingual_statuses:b}};d.getCrosspostData=function(a){var b=[],c=this.getMessages(a);a=this.getLanguageDialects(a);for(var d=0;d=1e6?Math.round(a/1e6)+"M":a>=1e3?Math.round(a/1e3)+"K":a.toString()},getAudioReleaseGraphAPIFields:function(a){a===void 0&&(a=!1);var c=["id","album_title","created_time","displayed_artist","ean","upc","grid","isrc","label_name","proprietary_id","parental_warning_type","genre","audio_release_image_uri","original_release_date"];(b("gkx")("815602")||a)&&c.push("availability_status");return c},apiToAvailabilityStatus:function(a){return a==null?null:{status:a.status,type:a.type,release:a.release,preparationStatus:a.prepared}},apiToAssetAvailabilityStatus:function(a){__p&&__p();if(a==null)return null;var b={};for(var c=0;cl&&(a=a.substring(0,l));return new(b("AdsGenericFilterSet"))([new(b("AdsGenericFilter"))(c,"CONTAIN",a)])},getActiveMatchDataFromMatch:function(a){var b=a.match_data,c=a.active_match_data_id;a=b.filter(function(a){return c==a.id});if(a.length===1)return a[0];else return b[0]},getReferenceVideoFilter:function(a){a=this.getActiveMatchDataFromMatch(a);var c=new(b("AdsGenericFilterField"))("static_reference_video_id",b("AdsGenericFilterFieldType").STRING_SET);a=a.reference_asset;return new(b("AdsGenericFilterSet"))([new(b("AdsGenericFilter"))(c,"EQUAL",a.id)])},getCopyrightInUnixDateFormat:function(a,c){a=a;var d=a.reference_file,e=d.published_time;e=b("parseISODate")(e);d.published_time=e.getTime()/1e3;e=d.live_status===0;var f=d.encoding_status;f=f&&f.video_status==="processing";c&&e&&f&&(d.live_status=1);return a},openMatchComparisonDialog:function(a,c){a=b("ActorURI").create(b("XVideoCopyrightMatchDialogController").getURIBuilder().setInt("id",a).setEnum("source","dashboard").getURI(),c);b("AsyncDialog").send(new(b("AsyncRequest"))(a))},sortableColumnToField:function(a,c){var d=this.getActiveMatchDataFromMatch(c);switch(a){case b("PageContentTabConstants").COLUMNS.VIDEO_VIEWS:return c.matched_video_asset.view_count;case b("PageContentTabConstants").COLUMNS.OVERLAP:return d.total_match_duration;case b("PageContentTabConstants").COLUMNS.EXPIRES_DAYS:case b("PageContentTabConstants").COLUMNS.DISPUTE_EXPIRES_DAYS:return c.expiration_days;case b("PageContentTabConstants").COLUMNS.REFERENCE_VIDEO:return d.reference_asset.title;case b("PageContentTabConstants").COLUMNS.LAST_MODIFIED_BY:return c.last_modified_time;case b("PageContentTabConstants").COLUMNS.DATE_FOUND:return c.added_to_dashboard_time}j(0,3678)},convertGraphAPIAssetToVideoCopyrightVideoMetadata:function(a){if(!a)return null;var b=a.ad_break_offsets_in_ms;return{id:a.id,title:a.title,durationInSec:a.duration_in_sec,width:a.width,height:a.height,permalinkURL:a.permalink_url,thumbnailSrc:a.thumbnail_url,ownerPictureSrc:a.owner_picture_url,ownerPublicName:a.owner_name||"",ownerProfileURL:a.owner_url,publishedTime:a.published_time,isPrivate:a.is_private,description:a.description,viewsCount:a.view_count,commentsCount:a.comment_count,sharesCount:a.share_count,followersCount:a.followers_count,likesCount:a.like_count,liveStatus:a.live_status,privacyExplanation:a.privacy_explanation,adBreakOffsets:b,containsAdBreaks:b&&b.length>0,monetizingOwnerCount:a.monetizing_owner_count,platform:a.platform,isStory:a.is_story,storyExpirationHours:a.story_expiration_hours,videoId:a.video_id}},getDefaultReferenceFileType:function(){return{id:"",title:"",durationInSec:0,thumbnailSrc:"",liveStatus:2,contentType:"video",metadata:{},universalContentID:"",publishedTime:0}},convertGraphAPIAssetToReferenceFileMetadata:function(a){return!a?this.getDefaultReferenceFileType():{id:a.id,title:a.title,downloadHdUrl:a.download_hd_url,durationInSec:a.duration_in_sec,thumbnailSrc:a.thumbnail_url,liveStatus:a.live_status,contentType:a.content_type,metadata:a.metadata,publishedTime:a.published_time,universalContentID:a.universal_content_id,fingerprintValidity:a.fingerprint_validity,iswc:a.iswc,writer_names:a.writer_names,copyrightCreationTime:a.copyright_creation_time,subTitle:a.sub_title}},convertGraphAPIAuditLogToVideoMetadata:function(a){var b=[];a.forEach(function(a){b.push({userName:a.user_name,timestamp:a.timestamp,matchState:a.match_state,reason:a.reason,appliedActions:a.applied_actions||[]})});return b},convertGraphAPIDisputeToMetadata:function(a){return{id:a.id,disputeType:a.dispute_type,status:a.status,expirationTime:a.expiration_time,timeCreated:a.time_created,timeAppealed:a.time_appealed,timeUpdated:a.time_updated,disputeFormData:a.dispute_form_data,appealFormData:a.appeal_form_data}},convertGraphAPIMatchToVideoCopyrightMatch:function(a){var b=a.matched_video_asset,c=a.last_modified_user,d=a.audit_log,e=a.dispute,f=a.muted_segments_from_other_publishers;return{attribution:a.attribution,matchID:a.id,is_viewed:a.is_viewed,status:a.match_status,expirationInDays:a.expiration_days,matchedVideoAsset:b?this.convertGraphAPIAssetToVideoCopyrightVideoMetadata(b):null,lastModifiedUserName:c?c.name:" ",lastModifiedTime:a.last_modified_time,auditLog:d?this.convertGraphAPIAuditLogToVideoMetadata(d):null,notes:a.notes,appliedActions:a.applied_actions||[],siblingAppliedActions:a.sibling_applied_actions||[],dispute:e?this.convertGraphAPIDisputeToMetadata(e):null,actionRequiringManualReview:a.action_requiring_manual_review,matchData:this.convertGraphAPIMatchDataToMetadata(a),addedToDashboardTime:a.added_to_dashboard_time,reviewReportID:a.review_report_id,ownershipCountries:a.ownership_countries,isAnonymous:a.is_anonymous,matchedAssetPlatform:b?b.platform:"FB",mutedSegmentsFromOtherPublishers:this.convertGraphAPIMutedSegmentsFromOtherPublishers(f),trustedPartnerInfo:a.trusted_partner_info,isBusinessPageMatch:a.is_business_page_match,publisherCanRestore:a.publisher_can_restore,matchedVideoOverlapDurationInSec:a.matched_video_overlap_duration_in_sec}},convertGraphAPIMutedSegmentsFromOtherPublishers:function(a){var b=[];if(!a)return b;a.forEach(function(a){var c=a.publisher_name,d=a.start_time_in_sec,e=a.duration_in_sec;a=a.segment_source;b.push({publisherName:c,startTimeInSec:d,durationInSec:e,segmentSource:a})});return b},convertGraphAPIReferenceHistoryToMetadata:function(a){var b=[];if(!a)return b;a.forEach(function(a){b.push({timestamp:a.timestamp,matchState:a.match_state})});return b},convertGraphAPIMatchToVideoReferenceMatch:function(a,b){b=b==a.matched_reference_owner_id;var c=b?a.matched_reference_copyright:a.reference_copyright;return{id:a.id,history:this.convertGraphAPIReferenceHistoryToMetadata(a.modification_history),matchState:a.match_state,matchData:this.convertGraphAPIMatchDataToMetadataImpl(a.match_data),matchedAsset:a.matched_reference_asset?this.convertGraphAPIAssetToReferenceFileMetadata(a.matched_reference_asset):null,referenceAsset:a.reference_asset?this.convertGraphAPIAssetToReferenceFileMetadata(a.reference_asset):null,matchedReferenceOwnerID:a.matched_reference_owner_id,matchedReferenceOwnerName:a.matched_reference_owner_name,referenceOwnerID:a.reference_owner_id,referenceOwnerName:a.reference_owner_name,conflictingCountries:a.conflicting_countries,ownershipCountries:c?c.ownership_countries:null,disputeFormData:JSON.parse(a.dispute_form_data),rejectionFormData:JSON.parse(a.rejection_form_data),expirationTime:a.expiration_time,isDisputable:a.is_disputable,isMatchedOwner:b,isPossibleConflict:a.is_possible_conflict,matchedReferenceCopyrightID:(c=a)!=null?(c=c.matched_reference_copyright)!=null?c.id:c:c,referenceCopyrightID:(b=a)!=null?(b=b.matched_reference_copyright)!=null?b.id:b:b}},convertGraphAPIMatchDataToMetadata:function(a){var b=a.match_data,c=[];b&&b.length&&b.forEach(function(b){var d=q.convertGraphAPIMatchDataToMetadataImpl(b);b.id.toString()===a.active_match_data_id?c.unshift(d):c.push(d)});return c},convertMatchedSegmentsToCopyrightSegments:function(a,c,d){a=a[c?d?"original_video_matched_segments":"video_matched_segments":d?"original_audio_matched_segments":"audio_matched_segments"]||[];c=a.map(function(a){return{referenceStartTimeInSec:a.reference_start_time_in_sec,matchedStartTimeInSec:a.matched_start_time_in_sec,durationInSec:a.duration_in_sec,refDurationInSec:a.ref_duration_in_sec,errorType:a.error_type,mediaType:a.media_type,segmentSource:a.segment_source||b("VideoCopyrightSegmentSource").RIDGE_MATCHES,included:!0}});return c},convertExcludedSegmentsToCopyrightSegments:function(a){a=a.map(function(a){return{referenceStartTimeInSec:a.start_time_in_sec,matchedStartTimeInSec:a.start_time_in_sec,durationInSec:a.duration_in_sec,refDurationInSec:a.duration_in_sec,mediaType:a.media_type,included:!!a.included,segmentSource:b("VideoCopyrightSegmentSource").PUBLISHER_DEFINED}});return a},convertCopyrightSegmentsToExcludedSegments:function(a){var c=[];a.forEach(function(a){if(a.segmentSource!==b("VideoCopyrightSegmentSource").PUBLISHER_DEFINED)return;a={start_time_in_sec:a.referenceStartTimeInSec,duration_in_sec:a.durationInSec,media_type:a.mediaType,segment_source:a.segmentSource,included:!!a.included};c.push(a)});return c},convertGraphAPIMatchDataToMetadataImpl:function(a){var b=a.excluded_ownership_segments||[];return{id:a.id,excludedSegments:this.convertExcludedSegmentsToCopyrightSegments(b),monitoringType:a.monitoring_type,appliedActions:a.applied_actions,matchRule:a.match_rule,matchedDurationInSec:a.total_match_duration,videoSegments:this.convertMatchedSegmentsToCopyrightSegments(a,!0,!1),audioSegments:this.convertMatchedSegmentsToCopyrightSegments(a,!1,!1),originalVideoSegments:this.convertMatchedSegmentsToCopyrightSegments(a,!0,!0),originalAudioSegments:this.convertMatchedSegmentsToCopyrightSegments(a,!1,!0),referenceAsset:this.convertGraphAPIAssetToReferenceFileMetadata(a.reference_asset),isManualMatch:a.is_manual_match,videoCopyrightID:a.video_copyright_id}},getDisputeExpirationLabel:function(a){var b,c;a=a-Date.now()/p;ac?1:-1}).forEach(function(a){__p&&__p();var f=a.durationInSec,g=b?a.referenceStartTimeInSec:a.matchedStartTimeInSec;f=g+f;if(e&&gc.nextTime||!!a)&&(this.$SphericalVideoGuideAnimation10(d),c=this.$SphericalVideoGuideAnimation9);a=b("easeInOutInterpolate")((d-c.baseTime)/c.deltaTime);d=c.deltaPitch*a+c.basePitch;a=c.deltaYaw*a+c.baseYaw;this.$SphericalVideoGuideAnimation1&&this.$SphericalVideoGuideAnimation4(a,d)};d.$SphericalVideoGuideAnimation11=function(){this.$SphericalVideoGuideAnimation3===null&&(this.$SphericalVideoGuideAnimation3=b("requestAnimationFrame")(this.$SphericalVideoGuideAnimation12))};d.calculateKeyframeIntervalOnResume=function(){var a=this.$SphericalVideoGuideAnimation5(),c=a.yaw;a=a.pitch;var d=this.$SphericalVideoGuideAnimation6()*h,e=[d,a,c];if(this.$SphericalVideoGuideAnimation2.length===0)a=[Infinity,a,c];else{c=b("findGreatestLowerBoundGuideKeyframeIndex")(this.$SphericalVideoGuideAnimation2,d);this.$SphericalVideoGuideAnimation2.length>c+1?this.$SphericalVideoGuideAnimation2[c+1][0]-d>2*g?a=[d+g,c<0?this.$SphericalVideoGuideAnimation8.pitch:this.$SphericalVideoGuideAnimation2[c][1],c<0?this.$SphericalVideoGuideAnimation8.yaw:this.$SphericalVideoGuideAnimation2[c][2]]:this.$SphericalVideoGuideAnimation2[c+1][0]-d>g?a=this.$SphericalVideoGuideAnimation2[c+1]:this.$SphericalVideoGuideAnimation2.length>c+2&&this.$SphericalVideoGuideAnimation2[c+2][0]-d<2*g?a=this.$SphericalVideoGuideAnimation2[c+2]:a=[d+g,this.$SphericalVideoGuideAnimation2[c+1][1],this.$SphericalVideoGuideAnimation2[c+1][2]]:a=[d+g,c<0?this.$SphericalVideoGuideAnimation8.pitch:this.$SphericalVideoGuideAnimation2[c][1],c<0?this.$SphericalVideoGuideAnimation8.yaw:this.$SphericalVideoGuideAnimation2[c][2]]}this.$SphericalVideoGuideAnimation13(e,a)};d.$SphericalVideoGuideAnimation10=function(a){var c,d;if(this.$SphericalVideoGuideAnimation2.length===0)c=[0,this.$SphericalVideoGuideAnimation8.pitch,this.$SphericalVideoGuideAnimation8.yaw],d=[Infinity,this.$SphericalVideoGuideAnimation8.pitch,this.$SphericalVideoGuideAnimation8.yaw];else{var e=b("findGreatestLowerBoundGuideKeyframeIndex")(this.$SphericalVideoGuideAnimation2,a);c=e===-1?[0,this.$SphericalVideoGuideAnimation8.pitch,this.$SphericalVideoGuideAnimation8.yaw]:this.$SphericalVideoGuideAnimation2[e];this.$SphericalVideoGuideAnimation2.length<=e+1?d=[Infinity,c[1],c[2]]:this.$SphericalVideoGuideAnimation2[e+1][0]-a>g?d=[this.$SphericalVideoGuideAnimation2[e+1][0]-g,c[1],c[2]]:(d=this.$SphericalVideoGuideAnimation2[e+1],c=[this.$SphericalVideoGuideAnimation2[e+1][0]-g,c[1],c[2]])}this.$SphericalVideoGuideAnimation13(c,d)};d.$SphericalVideoGuideAnimation13=function(a,c){var d=function(){return{baseTime:a[0],nextTime:c[0],deltaTime:c[0]-a[0],basePitch:a[1],deltaPitch:c[1]-a[1],baseYaw:a[2],deltaYaw:b("normalizeDeltaYaw")(c[2]-a[2])}};this.$SphericalVideoGuideAnimation1&&this.emit("newIntervalCalculated",d());this.$SphericalVideoGuideAnimation9=d()};return c}(b("EventEmitter"));e.exports=a}),null); __d("VideoWithSphericalGuide",["Run","SphericalVideoGuideAnimation","SubscriptionsHandler"],(function(a,b,c,d,e,f){__p&&__p();a=function(){"use strict";__p&&__p();function a(a,c){var d=this;this.$1=a;this.$2=c;this.$6=new(b("SubscriptionsHandler"))();this.$7();this.$1.getOption("SphericalVideoPlayer","isReady")?this.$8():this.$6.addSubscriptions(this.$1.once("SphericalVideoPlayer/ready",function(){return d.$8()}))}var c=a.prototype;c.$7=function(){__p&&__p();var a=this,c=function(b,c){return a.$1.setSphericalOrientation(b,c)},d=function(){return a.$1.getOption("SphericalVideoPlayer","getCurrentViewport")},e=function(){return a.$1.isState("playing")},f=function(b,c){return a.$1.emit("VideoWithSphericalGuide/viewportChange",b,c)};this.$1.registerOption("VideoWithSphericalGuide","enabled",function(){return a.$4.isEnabled()});this.$1.registerOption("VideoWithSphericalGuide","auto",function(){return a.$3.isEnabled()});var g=function(){return a.$1.getCurrentTimePosition()};this.$3=new(b("SphericalVideoGuideAnimation"))(this.$2,c,d,g,e);this.$4=new(b("SphericalVideoGuideAnimation"))(this.$2,f,d,g,e);this.$5=!1};c.$8=function(){__p&&__p();var a=this;this.$6.addSubscriptions(this.$1.addListener("updateViewportBegin",function(){return a.$9()}),this.$1.addListener("SphericalHeadingIndicator/click",function(){a.$4.isEnabled()&&!a.$3.isEnabled()&&a.setAutoEnabled(!0)}),this.$1.addListener("seekEnd",function(){return a.$10()}),this.$1.addListener("stateChange",function(){a.$1.isState("playing")&&a.$11()}),this.$1.addListener("SphericalVideoRecenterControl/animationStart",function(){return a.$12()}),this.$4.addListener("newIntervalCalculated",this.$13.bind(this)),this.$3.addListener("toggle",function(b,c){a.$1.emit("VideoWithSphericalGuide/toggle",b);b=b?"guide_entered":"guide_exited";c=c?{reason:c}:null;a.$1.logEvent(b,c)}));b("Run").onUnload(function(){return a.$6.release()});this.$2.guideEnabled&&(this.$4.setEnabled(!0),this.setAutoEnabled(!0,"guide_auto_entered"))};c.$12=function(){this.$5=!0};c.$13=function(a){this.$1.emit("VideoWithSphericalGuide/intervalUpdate",a)};c.$9=function(){var a=this,b=this.$1.once("updateViewportMove",function(){return a.setAutoEnabled(!1)});this.$1.once("updateViewportEnd",function(){return b.remove()})};c.$10=function(){this.$3.isEnabled()&&this.$3.updateViewport(!0),this.$4.isEnabled()&&this.$4.updateViewport(!0)};c.$11=function(){this.$5&&(this.$5=!1,this.$3.calculateKeyframeIntervalOnResume()),this.$3.resumeAnimation(),this.$4.resumeAnimation()};c.setInitialViewport=function(a,b){this.$3.setInitialViewport(a,b),this.$4.setInitialViewport(a,b),this.$4.updateViewport(!0)};c.setEnabled=function(a){this.$4.setEnabled(a),this.$3.setEnabledOnResume(a),this.$1.emit("VideoWithSphericalGuide/stateToggle",a)};c.setAutoEnabled=function(a,b){this.$3.setEnabledOnResume(a,b)};c.setKeyframes=function(a){this.$4.setKeyframes(a),this.$4.updateViewport(!0),this.$3.setKeyframes(a),this.$3.calculateKeyframeIntervalOnResume()};return a}();e.exports=a}),null); __d("AtSignMentionsStrategy",["DocumentMentionsRegex"],(function(a,b,c,d,e,f){__p&&__p();a=b("DocumentMentionsRegex").PUNCTUATION;c=["@","\\uff20"].join("");d="[^"+c+a+"\\s]";f="(?:\\.[ |$]| |["+a+"]|)";b=20;var g=new RegExp("(?:^|\\s|[(\\/])(["+c+"]((?:"+d+f+"){0,"+b+"}))$");a={name:"AtSignMentionsStrategy",findMentionableString:function(a){a=g.exec(a);if(a!==null){var b=a[2];if(b.length)return{matchingString:b,leadOffset:a[1].length}}return null}};e.exports=a}),null); __d("AudioChannelLayout",[],(function(a,b,c,d,e,f){e.exports=Object.freeze({UNKNOWN:"unknown",MONO:"mono",STEREO:"stereo",TBE_8:"tbe_8",TBE_8_2:"tbe_8.2",TBE_6_2:"tbe_6.2",AMBIX_4:"ambiX_4",AMBIX_4_2:"ambiX_4.2",AMBIX_9:"ambiX_9",AMBIX_9_2:"ambiX_9.2",AMBIX_16:"ambiX_16",AMBIX_16_2:"ambiX_16.2",HEADLOCKED:"headlocked",BINAURAL:"binaural",TBE_8A:"tbe_8a",TBE_8B:"tbe_8b",TBE_4:"tbe_4"})}),null);